<template>
  <div id="app">
    <el-container>
  <el-header>
    <ul>
      <li>
        <router-link to="">首页</router-link>
      </li>
      <li>
        <router-link to="/elTbale">表格</router-link>
      </li>
      <li>
        <router-link to="/store">Vuex</router-link>
      </li>
      <li>
        <router-link to="/vue">Vue</router-link>
      </li>
      <li>
        <router-link to="/ECMAScript">es6</router-link>
      </li>
      <li>
        <router-link to="/git">Git命令</router-link>
      </li>
      <li>
        <router-link to="/routerParam">编程式的路由传参</router-link>
      </li>
      <li>
        <router-link to="/redirect">路由重定向</router-link>
      </li>
      <li>
        <router-link to="/brouteNavigation">路由动画响应</router-link>
      </li>
      <li>
        <router-link to="/routeProp">路由Prop传值</router-link>
      </li>
    </ul>
  </el-header>
  <el-container>
    <el-aside width="200px">Aside</el-aside>
    <el-main>
      <router-view></router-view>
      <!-- <keep-alive> -->
     <!-- <router-view/> -->
      <!-- </keep-alive> -->
    </el-main>
  </el-container>
</el-container>
    <router-view name="homePage"></router-view>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
*{
  margin: 0;
  padding: 0;
  font-size: 12px;
}
li{
  list-style: none;
  float: left;
  padding: 10px 15px;
  box-sizing: border-box;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
}

.el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    /* text-align: center; */
    /* line-height: 60px; */
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    /* text-align: center; */
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    /* text-align: center; */
  }
  .el-form-item--small .el-form-item__error {
        padding-top: 7px;
  }
</style>
